package com.example.ketangpai_backend.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ketangpai_backend.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where account=#{account}")
    User getByAccount(String account);

    @Select("select * from user where account=#{account} and password=#{password}")
    User getByAccountAndPwd(String account, String password);




}
